#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <string.h>
//int my_strlen(char* str) {
//	char* str2=NULL;
//	str2 = str;
//	while (*str)
//	{
//		str++;
//	}
//	return str - str2;
//}
//int main()
//{
//	char arr[] = "abcdef";
//	printf("%d\n", strlen(arr));
//	printf("%d", my_strlen(arr));
//}




char* my_strcpy(char* arr,char* arr2) {
	char* sz = arr;
	while (*arr++ = *arr2++)
	{
		;
	}
	return sz;
}
int main()
{
	char arr2[] = "abcdefgh";
	char arr[20] = { 0 };
	char arr3[20] = { 0 };
	printf("%s\n", strcpy(arr,arr2));
	printf("%s", my_strcpy(arr3, arr2));
}